<?php

use Phalcon\Mvc\Router as PhRouter;

$di->set('router', function() {
	$router = new PhRouter(false);

	/**
 	 * loading routes from the routes.php file
	 */
    $router->add('/api/changestatus/:params', array(
        'controller'    => 'api',
        'action'        => 'changestatus',
        'params' => 1

    ));
      $router->add('/reviews/unfollow/:params', array(
        'controller'    => 'reviews',
        'action'        => 'Unfollow',
        'params' => 1

    ));
    $router->add('/reviews/follow/:params', array(
        'controller'    => 'reviews',
        'action'        => 'follow',
        'params' => 1

    ));
    $router->add('/threads/reply/:params', array(
        'controller'    => 'threads',
        'action'        => 'reply',
        'params' => 1

    ));
    $router->add('/threads/upload/:params', array(
        'controller'    => 'threads',
        'action'        => 'upload',
        'params' => 1

    ));

    $router->add('/threads/create/:params', array(
        'controller'    => 'threads',
        'action'        => 'create',
        'params' => 1

    ));

    $router->add('/reviews/create/:params', array(
        'controller'    => 'reviews',
        'action'        => 'create',
        'params' => 1

    ));  

    $router->add('/search/listgroups/:params', array(
        'controller'    => 'search',
        'action'        => 'listGroups',
        'params' => 1

    ));  

    $router->add('/search/listcompany/:params', array(
        'controller'    => 'search',
        'action'        => 'listCompany',
        'params' => 1

    ));  
    $router->add('/search/listpeople/:params', array(
        'controller'    => 'search',
        'action'        => 'listPeople',
        'params' => 1

    ));  

    $router->add('/search/listcities/:params', array(
        'controller'    => 'search',
        'action'        => 'listCities',
        'params' => 1

    ));  

    $router->add('/events/create/:params', array(
        'controller'    => 'events',
        'action'        => 'create',
        'params' => 1

    ));  

    $router->add('/notifications/countunread/:params', array(
        'controller'    => 'notifications',
        'action'        => 'countUnread',
        'params' => 1

    ));   

    $router->add('/events/insertstatus/:params', array(
        'controller'    => 'events',
        'action'        => 'insertStatus',
        'params' => 1

    ));   

        
    $router->add('/group/accept/:params', array(
        'controller'    => 'group',
        'action'        => 'accept',
        'params' => 1

    ));   

    $router->add('/group/request/:params', array(
        'controller'    => 'group',
        'action'        => 'request',
        'params' => 1

    ));   

    $router->add('/group/list/:params', array(
        'controller'    => 'group',
        'action'        => 'list',
        'params' => 1

    ));   

    $router->add('/group/create/:params', array(
        'controller'    => 'group',
        'action'        => 'create',
        'params' => 1

    ));   

    $router->add('/messages/list/:params', array(
        'controller'    => 'messages',
        'action'        => 'list',
        'params' => 1

    ));    

    $router->add('/messages/send/:params', array(
        'controller'    => 'messages',
        'action'        => 'send',
        'params' => 1

    ));

    $router->add('/feeds/list/:params', array(
        'controller'    => 'feeds',
        'action'        => 'list',
        'params' => 1

    ));

    $router->add('/notifications/mark/:params', array(
        'controller'    => 'notificaions',
        'action'        => 'mark',
        'params' => 1

    ));
    $router->add('/notifications/list/:params', array(
        'controller'    => 'notificaions',
        'action'        => 'list',
        'params' => 1

    ));

    $router->add('/chat/list/:params', array(
        'controller'    => 'chat',
        'action'        => 'list',
        'params' => 1

    ));

     $router->add('/chat/insert/:params', array(
        'controller'    => 'chat',
        'action'        => 'insert',
        'params' => 1

    ));

    $router->add('/connections/acceptRequest/:params', array(
        'controller'    => 'connections',
        'action'        => 'acceptRequest',
        'params' => 1

    ));
    $router->add('/profile/listPending/:params', array(
        'controller'    => 'profile',
        'action'        => 'listPending',
        'params' => 1

    ));

    $router->add('/api/getinfo/:params', array(
        'controller'    => 'api',
        'action'        => 'getInfo',
        'params' => 1

    ));

    $router->add('/users/presence/:params', array(
        'controller'    => 'users',
        'action'        => 'presence',
        'params' => 1

    ));

    $router->add('/users/logout/:params', array(
        'controller'    => 'users',
        'action'        => 'logout',
        'params' => 1

    ));

    $router->add('/api/upload/:params', array(
        'controller'    => 'Api',
        'action'        => 'upload',
        'params' => 1

    ));
    $router->add('/registration/save/:params', array(
        'controller'    => 'Registration',
        'action'        => 'save',
        'params' => 1

    ));
    $router->add('/connections/check/:params', array(
        'controller'    => 'Connections',
        'action'        => 'check',
        'params' => 1

    ));

     $router->add('/feeds/updateTotalPosts/:params', array(
        'controller'    => 'Feeds',
        'action'        => 'updateTotalPosts',
        'params' => 1

    ));

    $router->add('/connections/requestConnection/:params', array(
        'controller'    => 'Connections',
        'action'        => 'requestConnection',
        'params' => 1

    ));

    $router->add('/connections/insert/:params', array(
        'controller'    => 'Connections',
        'action'        => 'insert',
        'params' => 1

    ));

    $router->add('/likes/delete/:params', array(
        'controller'    => 'Likes',
        'action'        => 'delete',
        'params' => 1

    ));
    $router->add('/likes/insert/:params', array(
        'controller'    => 'Likes',
        'action'        => 'insert',
        'params' => 1

    ));
    $router->add('/comment/insert/:params', array(
        'controller'    => 'Comments',
        'action'        => 'insert',
        'params' => 1

    ));
    $router->add('/user/register/:params', array(
        'controller'    => 'Users',
        'action'        => 'register',
        'params' => 1

    ));

    $router->add('/user/login/:params', array(
        'controller'    => 'Users',
        'action'        => 'login',
        'params' => 1

    ));

	$router->add('/user/fblogin/:params', array(
        'controller'    => 'Users',
        'action'        => 'fblogin',
        'params' => 1

    ));

    $router->add('/user/upload/:params', array(
        'controller'    => 'Users',
        'action'        => 'upload',
        'params' => 1

    ));

    $router->add('/feeds/insert/:params', array(
        'controller'    => 'feeds',
        'action'        => 'insert',
        'params' => 1

    ));

    $router->add('/feeds/convert/:params', array(
        'controller'    => 'feeds',
        'action'        => 'convert',
        'params' => 1

    ));


    $router->add('/feeds/push/:params', array(
        'controller'    => 'feeds',
        'action'        => 'push',
        'params' => 1

    ));

	return $router;
});

